Optimal. Leaf size=62 \[ -\frac {4 b^2 (a-b x)^{1-n} (a+b x)^{-1+n} \, _2F_1\left (3,1-n;2-n;\frac {a-b x}{a+b x}\right )}{a (1-n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.043, Rules used = {133}
\begin {gather*} -\frac {4 b^2 (a-b x)^{1-n} (a+b x)^{n-1} \, _2F_1\left (3,1-n;2-n;\frac {a-b x}{a+b x}\right )}{a (1-n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 133
Rubi steps
\begin {align*} \int \frac {(a-b x)^{-n} (a+b x)^{1+n}}{x^3} \, dx &=-\frac {4 b^2 (a-b x)^{1-n} (a+b x)^{-1+n} \, _2F_1\left (3,1-n;2-n;\frac {a-b x}{a+b x}\right )}{a (1-n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 62, normalized size = 1.00 \begin {gather*} -\frac {4 b^2 (a-b x)^{1-n} (a+b x)^{-1+n} \, _2F_1\left (3,1-n;2-n;\frac {a-b x}{a+b x}\right )}{a (1-n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (b x +a \right )^{1+n} \left (-b x +a \right )^{-n}}{x^{3}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\left (a+b\,x\right )}^{n+1}}{x^3\,{\left (a-b\,x\right )}^n} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________